package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.Job;
import com.tiamo.traders.mapper.JobMapper;
import com.tiamo.traders.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class JobServiceImpl implements JobService {
    @Autowired
    JobMapper jobMapper;

    @Override
    public int add(Job job) {
        return jobMapper.add(job);
    }

    @Override
    public int update(Job job) {
        return jobMapper.update(job);
    }

    @Override
    public int delete(Job job) {
        return jobMapper.delete(job);
    }

    @Override
    public List<Job> findAll(Job job) {
        return jobMapper.findAll(job);
    }

    @Override
    public Job findById(Job job) {
        return jobMapper.findById(job);
    }

    @Override
    public int getCount(Job job) {
        return jobMapper.getCount(job);
    }
}
